package com.dk.pojo;

import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
public class User  implements Serializable {

    private Long id;

    private String username;

    private String password;

    private String realname;

    private String salt;

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public User(Long id, String username, String password, String realname, String salt) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.salt = salt;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", realname='" + realname + '\'' +
                ", salt='" + salt + '\'' +
                '}';
    }
}


